Don't use `.cargo` for custom CARGO_HOME
authorFlavio Percoco <flaper87@gmail.com>
Sat, 10 Jan 2015 23:44:12 +0000 (00:44 +0100)
committerFlavio Percoco <flaper87@gmail.com>
Sat, 10 Jan 2015 23:44:12 +0000 (00:44 +0100)
commitbef8095b2693c3411bf10b9ec647df26100da1eb
treef0aa22a8ba453aff31a2686593fa48e3250403ae
parent1a1868b7015e908713dfc99d512bc8058402ff94
Don't use `.cargo` for custom CARGO_HOME

Users changing cargo's home directory expect it to be used as top path
instead of there being a `.cargo` hidden dir in it. There are some cases
following this pattern one of them is python's virtualenvwrapper, which
uses `WORK_HOME` as a home dir for everything.

This patch removes the extra `.cargo` and assumes that CARGO_HOME is the
real path a user wants to use as a homedir for cargo.
src/cargo/util/config.rs
tests/test_cargo.rs